package com.project.class4_8.proxy2.bean;

import java.time.LocalDate;

/**
 * 出库实体类
 */
public class OutBean {
    /**
     * 出库编号
     */
    private int id;
    /**
     * 商品编号
     */
    private String productId;
    /**
     * 出库数量
     */
    private int num;
    /**
     * 出库时间，默认当天
     */
    private LocalDate outDate = LocalDate.now();

    public OutBean() {
    }

    public OutBean(String productId, int num) {
        this.productId = productId;
        this.num = num;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public LocalDate getOutDate() {
        return outDate;
    }

    public void setOutDate(LocalDate outDate) {
        this.outDate = outDate;
    }

    @Override
    public String toString() {
        return "OutBean{" +
                "id=" + id +
                ", productId='" + productId + '\'' +
                ", num=" + num +
                ", outDate=" + outDate +
                '}';
    }
}
